﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommonLibrary.DataModel.Basic;

namespace CommonLibrary.DataModel.BBS
{
    public abstract class CardEntity
    {
        /// <summary>
        ///  用户信息
        /// </summary>
        private UserEntity user;
        public UserEntity User
        {
            get { return user; }
            set { user = value; }
        }

        /// <summary>
        ///  帖子编号
        /// </summary>
        public String CardId { get; set; }

        /// <summary>
        ///  帖子内容
        /// </summary>
        public String CardText { get; set; }
        
    }

    public class InitCardEntity : CardEntity
    {
        /// <summary>
        ///  帖子标题
        /// </summary>
        public String CardTitle { get; set; }

        /// <summary>
        ///  发起时间
        /// </summary>
        public String InitTime { get; set; }

        /// <summary>
        ///  帖子状态
        /// </summary>
        public String CardState { get; set; }
        
        /// <summary>
        ///  回复数量
        /// </summary>
        public String ReplyCount { get; set; }

        /// <summary>
        ///  回复的帖子
        /// </summary>
        private ReplyCardEntities replyCards;
        public ReplyCardEntities ReplyCards
        {
            get { return replyCards; }
            set { replyCards = value; }
        }

    }

    public class ReplyCardEntity : CardEntity
    {
        /// <summary>
        ///  回复时间
        /// </summary>
        public String ReplyTime { get; set; }

        /// <summary>
        ///  发帖编号
        /// </summary>
        public String InitCardId { get; set; }

        /// <summary>
        ///  回复的楼数
        /// </summary>
        public Int32 BuildCount { get; set; }
    }

    public class InitCardEntities : List<InitCardEntity>
    {

    }

    public class ReplyCardEntities : List<ReplyCardEntity>
    {

    }

}
